<?
$comments = $this->comments;
?>

<table class="table4admin">
    <thead>
    <tr>
        <td>Nick</td>
        <td>Comment</td>
        <td>Marks</td>
        <td></td>
        <td></td>


    </tr>
    </thead>
    <tbody>
    <?foreach ($comments as $onecomment):?>
        <tr>
            <td><?=$onecomment['nick']?></td>


            <td><?=$onecomment['comment']?></td>
            <td>


                                 <div style="width: 200px">Price:<div class="rateit" data-rateit-value="<?=$onecomment['price']?>" data-rateit-readonly="true"></div></div>
                                 <div style="width: 200px">Quality:<div class="rateit" data-rateit-value="<?=$onecomment['quality']?>" data-rateit-readonly="true"></div></div>
                                 <div style="width: 200px">Responsiveness:<div class="rateit" data-rateit-value="<?=$onecomment['responsiveness']?>" data-rateit-readonly="true"></div></div>
                                 <div style="width: 200px">Punctuality:<div class="rateit" data-rateit-value="<?=$onecomment['punctuality']?>" data-rateit-readonly="true"></div></div>
                                 <div style="width: 200px">Professionalism:<div class="rateit" data-rateit-value="<?=$onecomment['professionalism']?>" data-rateit-readonly="true"></div></div>

                             
             </td>
             
             <td><a  href="/comments/edit">Edit</a></td>
             <td><a class="delete" href="/comments/delete/id/<?=$onecomment['id']?>">Delete</a></td>
        </tr>
    <?endforeach;?>
    </tbody>
 </table>


    <script type="text/javascript">
         $(document).ready(function(){

                    $('div.rateit').rateit();


                });

      </script>






